From 3d041f695c6008141bc935ecd9705d2ddde0554b Mon Sep 17 00:00:00 2001 From: oliskoli Date: Tue, 20 Feb 2007 20:55:25 +0000 Subject: [PATCH] Remove globalopts.objective dependency. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@2678 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/tef_xml.c | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/gpsbabel/tef_xml.c b/gpsbabel/tef_xml.c index 9308f2036..dbc58ea3f 100644 --- a/gpsbabel/tef_xml.c +++ b/gpsbabel/tef_xml.c @@ -104,23 +104,20 @@ tef_header(const char *args, const char **attrv) { const char **avp = &attrv[0]; - if (global_opts.objective == rtedata) + route = route_head_alloc(); + while (*avp) { - route = route_head_alloc(); - while (*avp) + if (strcmp(avp[0], "Name") == 0) + { + route->rte_name = xstrdup(avp[1]); + } + else if (strcmp(avp[0], "Software") == 0) { - if (strcmp(avp[0], "Name") == 0) - { - route->rte_name = xstrdup(avp[1]); - } - else if (strcmp(avp[0], "Software") == 0) - { - route->rte_desc = xstrdup(avp[1]); - } - avp+=2; + route->rte_desc = xstrdup(avp[1]); } - route_add_head(route); + avp+=2; } + route_add_head(route); } /* -- 2.30.2